home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVFQTYPE.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  30 lines

  1. /*=======================================================*/
  2. /*  TVFQTYPE.C                                           */
  3. /*     functions for manipulating input fields in a wind */
  4. /*                                                       */
  5. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  6. /*  May be freely copied for noncommercial use, so long  */
  7. /*  as this copyright notice remains intact, and any     */
  8. /*  changes are marked in the comment blocks preceding   */
  9. /*  functions.                                           */
  10. /*=======================================================*/
  11.  
  12. #include "tvapi.h"
  13. #include "tvstream.h"
  14.  
  15. /*=============================================*/
  16. /* TVqry_type  get type of a field             */
  17. /*   Ralf Brown 4/17/88                        */
  18. /*=============================================*/
  19.  
  20. int pascal TVqry_type(OBJECT win,int fld)
  21. {
  22.    static BYTE stream[] = { S_QUERY(3), 0xF6, 0, 0 } ;
  23.  
  24.    stream[5] = fld ;
  25.    TVwin_stream(win,stream) ;
  26.    return (int) stream[6] ;
  27. }
  28.  
  29. /* End of TVFQTYPE.C */
  30.